const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/",
  name: "spa",
  component: Layout,
  redirect: "/spa/management",
  meta: {
    icon: "ep:grid",
    title: "首页",
    rank: 0
  },
  children: [
    {
      path: "/spa/management",
      name: "management",
      component: () => import("@/views/spa-management/index.vue"),
      meta: {
        title: "上钟监控",
        showLink: true,
        roles: ["admin", "common"],
        hideHeader: true
      }
    }
  ]
} satisfies RouteConfigsTable;
